package ssm.service.impl;

import org.springframework.stereotype.Service;
import ssm.dao.IUserDao;
import ssm.pojo.User;
import ssm.service.IUserService;

import javax.annotation.Resource;

/**
 * Author: silence
 * Date: 17-5-26.
 */
@Service("userService")
public class UserServiceImpl implements IUserService {

    @Resource
    private IUserDao userDao;

    @Override
    public User getUserById(int userId) {
        return this.userDao.selectByPrimaryKey(userId);
    }
}
